﻿<Window x:Class="CnmViewer.OpenFolderDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Open Folder" Height="300" Width="400"
    MinHeight="200" MinWidth="350"
    KeyUp="Window_KeyUp">
    <DockPanel LastChildFill="True" Margin="5">
        <Grid DockPanel.Dock="Bottom">
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <StackPanel Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" Name="panelRead" Visibility="Hidden">
                <TextBlock Margin="5" VerticalAlignment="Center">Read files</TextBlock>
                <ProgressBar Width="100" Height="15">
                    <ProgressBar.Style>
                        <Style TargetType="ProgressBar">
                            <Style.Triggers>
                                <Trigger Property="IsVisible" Value="True">
                                    <Setter Property="IsIndeterminate" Value="True"></Setter>
                                </Trigger>
                            </Style.Triggers>
                        </Style>
                    </ProgressBar.Style>
                </ProgressBar>
                <TextBlock Margin="5" VerticalAlignment="Center" Name="txtCounter">0</TextBlock>
            </StackPanel>
            <Button Style="{StaticResource ButtonWideStyle}" Grid.Column="1" IsDefault="True" Name="cmdOK" Click="cmdOK_Click">OK</Button>
            <Button Style="{StaticResource ButtonWideStyle}" Grid.Column="2" Name="cmdCancel" Click="cmdCancel_Click">Cancel</Button>
        </Grid>
        <Border Style="{StaticResource BorderStyle}" Padding="7">
            <TreeView Name="treeDir" TreeViewItem.Expanded="treeDir_Expanded" BorderBrush="Transparent"></TreeView>
        </Border>
    </DockPanel>
</Window>
